<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddCityCodesToManagerUsers extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_organization_manage_users', function (Blueprint $table) {
            $table->json('addressCodes')->nullable()->comment('负责的省-市-区，数组')->after('type');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_organization_manage_users', function (Blueprint $table) {
            $table->dropColumn('addressCodes');
        });
    }
}
